package com.duoketech.service.pay;

import com.duoketech.model.order.Order;

public class ProductOrderPayCallBack implements IPayCallBack{

    @Override
    public void doPayCallBack(int orderId) {
        Order order = Order.dao.findById(orderId);
        if(order!=null&&order.getInt(Order.STATUS)==Order.STATUS_UNPAY){
            order.set(Order.STATUS,Order.STATUS_PAID);
            order.update();
        }
    }
}
